package net.itbrother.service.user;

import java.util.List;

import net.itbrother.dao.user.UserDao;
import net.itbrother.model.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
	
	@Autowired
	UserDao userDao;
	
	/**
	 * 查询所有用户
	 * @return
	 */
	public List<User> queryAllUser(){
		return userDao.queryAll();
	}
	
	/**
	 * 根据用户登录账号查询用户信息
	 * @return
	 */
	public List<User> queryUserByUserCode(String userCode){
		return userDao.queryUserByUserCode(userCode);
	}
	
	
}
